package com.thlws.java.proxy.dynamic_jdk;

import com.thlws.java.proxy.HelloInterface;

/**
 * @author HanleyTang
 * @date 2018-12-04
 */
public class Client {

    public static void main(String[] args) {

        HelloInterface hello = new HelloJdk();
        JDKProxy<HelloInterface> jdkProxy = new JDKProxy<HelloInterface>(hello);
        HelloInterface helloInterface = jdkProxy.createProxyInstance();
        helloInterface.say();
    }
}
